package com.adams.app.utils;

import com.baidu.location.BDLocation;
import com.baidu.platform.comapi.basestruct.GeoPoint;

/**
 * 
 * @author ChengBin
 *
 */
public class MapUtils {

	/**
	 * 
	 * @description 获取geo
	 *
	 * @author ChengBin
	 * @date   2014年1月2日下午1:19:18
	 * @param local
	 * @return
	 */
	public static GeoPoint getGeoPoint(BDLocation local) {
		return new GeoPoint((int)(local.getLatitude() * 1E6), (int)(local.getLongitude() * 1E6));
	}
}
